<!-- 用例历史执行记录 -->
<template>
  <div>
    <el-dialog title="历史记录" :visible.sync="visible" width="100%" :before-close="handleClose" :fullscreen="isfullscreen">
      <!-- table展示页 -->
      <el-table v-loading="historyExecListLoading" :data="historyExecList" border style="width: 100%;" @selection-change="selectionChangeHandle">
        <el-table-column type="selection" header-align="center" align="center" width="50" />
        <el-table-column prop="author" header-align="center" align="center" label="执行人" sortable />
        <el-table-column prop="logId" header-align="center" align="center" label="日志ID" sortable />
        <el-table-column prop="result" header-align="center" align="center" label="执行结果" sortable />
        <el-table-column prop="taskId" header-align="center" align="center" label="任务ID" sortable />
        <el-table-column prop="time" header-align="center" align="center" label="执行时间" sortable />
        <el-table-column prop="remark" header-align="center" align="center" label="备注信息" sortable />
        <!-- <el-table-column fixed="right" header-align="center" align="center" width="200" label="操作">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="todo(scope.row)">修改</el-button>
            <el-button type="text" size="small" @click="todo(scope.row)">删除</el-button>
          </template>
        </el-table-column> -->
      </el-table>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      visible: false,
      isfullscreen: true,
      historyExecList: [],
      historyExecListLoading: false,
      historyExecListSelections: []
    }
  },
  methods: {
    init(execInfo) {
      this.visible = true
      this.historyExecList = JSON.parse(execInfo)
      console.info(this.historyExecList)
    },
    handleClose(done) {
      done()
    },
    // 多选
    selectionChangeHandle(val) {
      this.historyExecListSelections = val
    }
  }
}
</script>

<style>
</style>
